package app.fugema.shop.main.setting.model;

import androidx.databinding.BaseObservable;
import androidx.databinding.Bindable;

import app.fugema.shop.BR;

public class UserSetInfo extends BaseObservable {

    private String avatarUrl;
    private String nickName = "";
    //性别（1：男，2：女）
    private int sex;
    //生日yyyy-MM-dd string
    private String birthDate = "";

    private String realName;
    private String qq;

    @Bindable
    public String getAvatarUrl()
    {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl)
    {
        this.avatarUrl = avatarUrl;
        notifyPropertyChanged(BR.avatarUrl);
    }

    @Bindable
    public String getBirthDate()
    {
        return birthDate;
    }

    public void setBirthDate(String birthDate)
    {
        if (birthDate == null) birthDate = "";
        this.birthDate = birthDate;
        notifyPropertyChanged(BR.birthDate);
    }


    public String getNickName()
    {
        return nickName;
    }

    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public int getSex()
    {
        return sex;
    }

    public void setSex(int sex)
    {
        this.sex = sex;
    }

    public String getRealName()
    {
        return realName;
    }

    public void setRealName(String realName)
    {
        this.realName = realName;
    }

    public String getQq()
    {
        return qq;
    }

    public void setQq(String qq)
    {
        this.qq = qq;
    }
}
